package com.ruoyi.dash.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.dash.mapper.TbFutureOutlookMapper;
import com.ruoyi.dash.domain.TbFutureOutlook;
import com.ruoyi.dash.service.ITbFutureOutlookService;

/**
 * 未来展望Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-10-24
 */
@Service
public class TbFutureOutlookServiceImpl implements ITbFutureOutlookService 
{
    @Autowired
    private TbFutureOutlookMapper tbFutureOutlookMapper;

    /**
     * 查询未来展望
     * 
     * @param id 未来展望主键
     * @return 未来展望
     */
    @Override
    public TbFutureOutlook selectTbFutureOutlookById(String id)
    {
        return tbFutureOutlookMapper.selectTbFutureOutlookById(id);
    }

    /**
     * 查询未来展望列表
     * 
     * @param tbFutureOutlook 未来展望
     * @return 未来展望
     */
    @Override
    public List<TbFutureOutlook> selectTbFutureOutlookList(TbFutureOutlook tbFutureOutlook)
    {
        return tbFutureOutlookMapper.selectTbFutureOutlookList(tbFutureOutlook);
    }

    /**
     * 新增未来展望
     * 
     * @param tbFutureOutlook 未来展望
     * @return 结果
     */
    @Override
    public int insertTbFutureOutlook(TbFutureOutlook tbFutureOutlook)
    {
        return tbFutureOutlookMapper.insertTbFutureOutlook(tbFutureOutlook);
    }

    /**
     * 修改未来展望
     * 
     * @param tbFutureOutlook 未来展望
     * @return 结果
     */
    @Override
    public int updateTbFutureOutlook(TbFutureOutlook tbFutureOutlook)
    {
        tbFutureOutlook.setUpdateTime(DateUtils.getNowDate());
        return tbFutureOutlookMapper.updateTbFutureOutlook(tbFutureOutlook);
    }

    /**
     * 批量删除未来展望
     * 
     * @param ids 需要删除的未来展望主键
     * @return 结果
     */
    @Override
    public int deleteTbFutureOutlookByIds(String[] ids)
    {
        return tbFutureOutlookMapper.deleteTbFutureOutlookByIds(ids);
    }

    /**
     * 删除未来展望信息
     * 
     * @param id 未来展望主键
     * @return 结果
     */
    @Override
    public int deleteTbFutureOutlookById(String id)
    {
        return tbFutureOutlookMapper.deleteTbFutureOutlookById(id);
    }
}
